package com.codedancer.campus.manager.service.vo.chatMessage;

import com.codedancer.campus.enums.ChatMessageContentType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@Data
@ApiModel("聊天信息Vo")
public class ChatMessageVo {

    @ApiModelProperty("主键uuid")
    private String uuid;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private ChatMessageContentType contentType;

    @ApiModelProperty("发送者uuid")
    private String sendUserUuid;

    @ApiModelProperty("发送者名称")
    private String sendUserName;

    @ApiModelProperty("发送者头像")
    private String sendUserAvatar;

    @ApiModelProperty("接收者uuid")
    private String receiveUserUuid;

    @ApiModelProperty("接收者名称")
    private String receiveUserName;

    @ApiModelProperty("接收者头像")
    private String receiveUserAvatar;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
